#include <testngpp/internal/TestCase.h>
#include <testngpp/internal/TestFixtureDesc.h>
#include <testngpp/internal/TestSuiteDesc.h>
#include <testngpp/internal/DataDriven.h>
#include "TestSquare.h"

static struct TESTCASE_TestSquare_test_11
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestSquare_test_11()
      : TESTNGPP_NS::TestCase
        ( "should be able to calculate area: 3.1*3.1=9.61"
        , "Square"
        , "TestSquare"
        , 0
        , "TestSquare.h"
        , 11)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestSquare();
      }
      else
      {
         belongedFixture = dynamic_cast<TestSquare*>(fixture);
      }
   }

   void runTest()
   {
      
belongedFixture->test_11()
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

private:
   TestSquare* belongedFixture;
} testcase_instance_TestSquare_test_11 ;



static struct TESTCASE_TestSquare_test_16
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestSquare_test_16()
      : TESTNGPP_NS::TestCase
        ( "should be able to calculate perimeter: 4*3.1=12.4"
        , "Square"
        , "TestSquare"
        , 0
        , "TestSquare.h"
        , 16)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestSquare();
      }
      else
      {
         belongedFixture = dynamic_cast<TestSquare*>(fixture);
      }
   }

   void runTest()
   {
      
belongedFixture->test_16()
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

private:
   TestSquare* belongedFixture;
} testcase_instance_TestSquare_test_16 ;



static struct TESTCASE_TestSquare_test_21
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestSquare_test_21()
      : TESTNGPP_NS::TestCase
        ( "should be able to set side: 75"
        , "Square"
        , "TestSquare"
        , 0
        , "TestSquare.h"
        , 21)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestSquare();
      }
      else
      {
         belongedFixture = dynamic_cast<TestSquare*>(fixture);
      }
   }

   void runTest()
   {
      
belongedFixture->test_21()
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

private:
   TestSquare* belongedFixture;
} testcase_instance_TestSquare_test_21 ;



static TESTNGPP_NS::TestCase* g_TESTCASEARRAY_TestSquare[] = {
&testcase_instance_TestSquare_test_11,
&testcase_instance_TestSquare_test_16,
&testcase_instance_TestSquare_test_21,
0
};




/*static*/ TESTNGPP_NS::TestFixtureDesc test_fixture_desc_instance_TestSquare
   ( "Square"
   , "TestSquare.h"
   , g_TESTCASEARRAY_TestSquare
   , (sizeof(g_TESTCASEARRAY_TestSquare)/sizeof(g_TESTCASEARRAY_TestSquare[0])) - 1
   );



static TESTNGPP_NS::TestFixtureDesc* array_of_fixture_desc_TestSquare[] = {
&test_fixture_desc_instance_TestSquare,
0
};




static TESTNGPP_NS::TestSuiteDesc test_suite_desc_instance_TestSquare
   ( "TestSquare"
   , array_of_fixture_desc_TestSquare
   , (sizeof(array_of_fixture_desc_TestSquare)/sizeof(array_of_fixture_desc_TestSquare[0])) - 1
   );



extern "C" DLL_EXPORT TESTNGPP_NS::TestSuiteDesc* ___testngpp_test_suite_desc_getter() {
   return &test_suite_desc_instance_TestSquare;
}


